﻿//----------------------------------------------------------------------------------------------------
// The Item is a representation of something a player has aquired
//----------------------------------------------------------------------------------------------------

package HG.GameDataTypes
{
	public class Item
	{
		//Const
		public static const TYPE_ENCRYPTION_KEY:String = "Key";
		
		//Dynamic
		var m_owner:Number;
		var m_type:String;
		var m_ID:Number;
		var m_contents:Object;
		
		//----------------------------------------------------------------------------------------------------
		public function Item(playerNumber:Number, type:String, ID:Number)
		{
			m_owner = playerNumber;
			m_type = type;
			m_ID = ID;
		}
		
		//----------------------------------------------------------------------------------------------------
		public function GetOwner():Number
		{
			return m_owner;
		}
		
		//----------------------------------------------------------------------------------------------------
		public function GetID():Number
		{
			return m_ID;
		}
		
		//----------------------------------------------------------------------------------------------------
		public function SetContents(cont:Object)
		{
			m_contents = cont;
		}
		
		//----------------------------------------------------------------------------------------------------
		public function GetContents():Object
		{
			return m_contents;
		}
		
		//----------------------------------------------------------------------------------------------------
	}
}